Optimal. Leaf size=37 \[ -\frac{4}{15} i \cos ^3(x)+\frac{4}{5} i \cos (x)+\frac{i \sin ^3(x)}{5 (\cot (x)+i)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0399543, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {3502, 2633} \[ -\frac{4}{15} i \cos ^3(x)+\frac{4}{5} i \cos (x)+\frac{i \sin ^3(x)}{5 (\cot (x)+i)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3502
Rule 2633
Rubi steps
\begin{align*} \int \frac{\sin ^3(x)}{i+\cot (x)} \, dx &=\frac{i \sin ^3(x)}{5 (i+\cot (x))}-\frac{4}{5} i \int \sin ^3(x) \, dx\\ &=\frac{i \sin ^3(x)}{5 (i+\cot (x))}+\frac{4}{5} i \operatorname{Subst}\left (\int \left (1-x^2\right ) \, dx,x,\cos (x)\right )\\ &=\frac{4}{5} i \cos (x)-\frac{4}{15} i \cos ^3(x)+\frac{i \sin ^3(x)}{5 (i+\cot (x))}\\ \end{align*}
Mathematica [A] time = 0.0926275, size = 46, normalized size = 1.24 \[ \frac{\csc (x) (-40 \sin (2 x)+4 \sin (4 x)+20 i \cos (2 x)-i \cos (4 x)+45 i)}{120 (\cot (x)+i)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.064, size = 93, normalized size = 2.5 \begin{align*}{-i \left ( \tan \left ({\frac{x}{2}} \right ) -i \right ) ^{-4}}-{{\frac{i}{2}} \left ( \tan \left ({\frac{x}{2}} \right ) -i \right ) ^{-2}}+{\frac{2}{5} \left ( \tan \left ({\frac{x}{2}} \right ) -i \right ) ^{-5}}-{\frac{1}{3} \left ( \tan \left ({\frac{x}{2}} \right ) -i \right ) ^{-3}}+{\frac{3}{8} \left ( \tan \left ({\frac{x}{2}} \right ) -i \right ) ^{-1}}-{{\frac{i}{4}} \left ( \tan \left ({\frac{x}{2}} \right ) +i \right ) ^{-2}}-{\frac{1}{6} \left ( \tan \left ({\frac{x}{2}} \right ) +i \right ) ^{-3}}-{\frac{3}{8} \left ( \tan \left ({\frac{x}{2}} \right ) +i \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.55839, size = 194, normalized size = 5.24 \begin{align*} \frac{1}{240} \,{\left ({\left (-5 i \, e^{\left (6 i \, x\right )} + 45 i \, e^{\left (4 i \, x\right )} + 45 i \, e^{\left (2 i \, x\right )} - 5 i\right )} e^{\left (2 i \, x\right )} + 15 i \, e^{\left (6 i \, x\right )} + 45 i \, e^{\left (4 i \, x\right )} - 15 i \, e^{\left (2 i \, x\right )} + 3 i\right )} e^{\left (-5 i \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.297597, size = 48, normalized size = 1.3 \begin{align*} - \frac{i e^{3 i x}}{48} + \frac{i e^{i x}}{4} + \frac{3 i e^{- i x}}{8} - \frac{i e^{- 3 i x}}{12} + \frac{i e^{- 5 i x}}{80} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.31075, size = 93, normalized size = 2.51 \begin{align*} -\frac{9 \, \tan \left (\frac{1}{2} \, x\right )^{2} + 24 i \, \tan \left (\frac{1}{2} \, x\right ) - 11}{24 \,{\left (\tan \left (\frac{1}{2} \, x\right ) + i\right )}^{3}} + \frac{45 \, \tan \left (\frac{1}{2} \, x\right )^{4} - 240 i \, \tan \left (\frac{1}{2} \, x\right )^{3} - 490 \, \tan \left (\frac{1}{2} \, x\right )^{2} + 320 i \, \tan \left (\frac{1}{2} \, x\right ) + 73}{120 \,{\left (\tan \left (\frac{1}{2} \, x\right ) - i\right )}^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]